﻿@model L2C.Publishing_Item

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>PublishItemView</title>
</head>
<body>
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    
    @using (Html.BeginForm()) {
        @Html.ValidationSummary(true)
        <fieldset>
            <legend>Publishing_Item</legend>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.Product_Id)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Product_Id)
                @Html.ValidationMessageFor(model => model.Product_Id)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.Title)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Title)
                @Html.ValidationMessageFor(model => model.Title)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.MainContent)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.MainContent)
                @Html.ValidationMessageFor(model => model.MainContent)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.Descriptions)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Descriptions)
                @Html.ValidationMessageFor(model => model.Descriptions)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.ViewerCounter)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.ViewerCounter)
                @Html.ValidationMessageFor(model => model.ViewerCounter)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.SellPrice)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.SellPrice)
                @Html.ValidationMessageFor(model => model.SellPrice)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.DiscountPercent)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.DiscountPercent)
                @Html.ValidationMessageFor(model => model.DiscountPercent)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.Product_Price)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Product_Price)
                @Html.ValidationMessageFor(model => model.Product_Price)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.StartDate)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.StartDate)
                @Html.ValidationMessageFor(model => model.StartDate)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.EndDate)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.EndDate)
                @Html.ValidationMessageFor(model => model.EndDate)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.BuyerCounter)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.BuyerCounter)
                @Html.ValidationMessageFor(model => model.BuyerCounter)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.MaximumQuanlity)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.MaximumQuanlity)
                @Html.ValidationMessageFor(model => model.MaximumQuanlity)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.Category_Id)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Category_Id)
                @Html.ValidationMessageFor(model => model.Category_Id)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.SmallPicture)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.SmallPicture)
                @Html.ValidationMessageFor(model => model.SmallPicture)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.ShortTitle)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.ShortTitle)
                @Html.ValidationMessageFor(model => model.ShortTitle)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.Highlight)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Highlight)
                @Html.ValidationMessageFor(model => model.Highlight)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.Image)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Image)
                @Html.ValidationMessageFor(model => model.Image)
            </div>
    
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>
    }
    
    <div>
        @Html.ActionLink("Back to List", "Index")
    </div>
</body>
</html>
